package day240730;

public enum Student{
    STUDENT;
    private String name;
    private int age;
    public void setName(String name){
        this.name = name;
    }
    public void setAge(int age){
        this.age = age;
    }
    public String getName(){
        return name;
    }
    public int getAge(){
        return age;
    }
    public static void main(String[] args){
        Student student = Student.STUDENT;
        Student student1 = Student.STUDENT;
        System.out.println(student == student1);
        /*student.setName("小明");
        student.setAge(18);
        System.out.println(student.getName());
        System.out.println(student.getAge());
        Student student2 = Student.STUDENT;
        System.out.println("student = " + student);
        System.out.println("student2 = " + student2);*/
    }
}
